<li class="green">
	<a data-toggle="dropdown" class="dropdown-toggle" href="#">
		<i class="icon-envelope-alt icon-only icon-animated-vertical"></i>
		<span class="badge badge-success"><?php echo count($params['notifications']['green']['items']); ?></span>
	</a>

	<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer">
		<li class="nav-header">
			<i class="icon-envelope"></i>
			<?php echo count($params['notifications']['green']['items']); ?> Messages
		</li>
	<?php
		foreach($params['notifications']['green']['items'] as $k=>$v)
		{
	?>
		<li>
			<a href="#">
				<img src="<?php echo $v['avatar_image'];?>" class="msg-photo" alt="<?php echo $v['name'];?>'s Avatar" />
				<span class="msg-body">
					<span class="msg-title">
						<span class="blue"><?php echo $v['name'];?>:</span>
						<?php echo $v['message'];?>
					</span>

					<span class="msg-time">
						<i class="icon-time"></i>
						<span><?php echo $v['message_timestamp'];?></span>
					</span>
				</span>
			</a>
		</li>
	<?php }?>
		<li>
			<a href="<?php echo $params['notifications']['green']['full_list_url'];?>">
				See all messages
				<i class="icon-arrow-right"></i>
			</a>
		</li>
	</ul>
</li>